package com.umpay.dto.spay.req;

import com.umpay.dto.spay.Batch;
import com.umpay.dto.spay.Mer;
import com.umpay.verify.Verifiable;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

public class ReqOrder implements Verifiable {

    @NotNull(message = "用户编码不能为空")
    private String userId;
    private Long amount;
    private String req_time;
    @NotNull(message = "商户编码不能为空")
    private String mer_id;
    @NotNull(message = "订单号不能为空")
    private String order_id;
    @NotNull(message = "商户日期不能为空")
    private String mer_date;
    // 集合
    @Valid
    List<Batch> batchs;
    // map
    @Valid
    private Mer mer;

    private Object[] goods;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getReq_time() {
        return req_time;
    }

    public void setReq_time(String req_time) {
        this.req_time = req_time;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public List<Batch> getBatchs() {
        return batchs;
    }

    public void setBatchs(List<Batch> batchs) {
        this.batchs = batchs;
    }

    public Mer getMer() {
        return mer;
    }

    public void setMer(Mer mer) {
        this.mer = mer;
    }

    public Object[] getGoods() {
        return goods;
    }

    public void setGoods(Object[] goods) {
        this.goods = goods;
    }

    public String getMer_id() {
        return mer_id;
    }

    public void setMer_id(String mer_id) {
        this.mer_id = mer_id;
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public String getMer_date() {
        return mer_date;
    }

    public void setMer_date(String mer_date) {
        this.mer_date = mer_date;
    }

}
